#include "../src/common.h"

int main () {

	WINDOW window (800, 600);
	FONT font ("./res/msyahei.ttf", 40);
	// FONT font ("/usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf", 20);

	IMAGE pic (window, 800, 600);
	// unsigned char code [7] {0};
	// SDL_Surface* temp = nullptr;
	// for (uint32_t a = 0x4e00; a <= 0x9fa5; a++) {
	// for (uint32_t a = 0x4e00; a <= 0x6000; a++) {
		// FONT::unicode2utf8 (a, code, 6);
		// temp = font.renderFont (code, {255, 255, 255, 16});
		// pic.getImage (temp);
		// SDL_FreeSurface (temp);
		pic.getImage (font.renderFont ("⓿❶❷❸❹❺❻❼❽❾❿⓫⓬⓭⓮⓯⓰⓱⓲⓳⓴"));
		pic.putImage (100, 100);
	// }
	window.updateTexture ();
	window.update ();
	window.clear ();
	getchar ();
	return 0;
}